package com.qlyl.modules.information.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qlyl.common.aspect.annotation.Dict;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 企业信息表
 * </p>
 *
 * @Author liuyu
 * @since 2019-12-17
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("consum_info")
public class Consumers implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称", width = 15)
    @TableField(value = "company_name")
    private String companyName;

    /**
     * 法人信息
     */
    @Excel(name = "法人信息", width = 15)
    @TableField(value = "legal_person_info")
    private String legalPersonInfo;


    /**
     * 营业执照
     */
    @Excel(name = "营业执照", width = 15)
    @TableField(value = "business_license_img")
    private String businessLicenseImg;


    /**
     * 税号
     */
    @Excel(name = "税号", width = 15)
    private String ein;

    /**
     * 公司类型
     */
    @Excel(name = "公司类型", width = 15)
    @TableField(value = "company_type")
    private String companyType;

    /**
     * 注册资金
     */
    @Excel(name = "注册资金", width = 15)
    @TableField(value = "registered_capital")
    private Integer registeredCapital;

    /**
     * 成立日期
     */
    @Excel(name = "成立日期", width = 15,format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "establish_date")
    private Date establishDate;

    /**
     * 营业期限
     */
    @Excel(name = "营业期限", width = 15)
    @TableField(value = "business_term")
    private String businessTerm;

    /**
     * 登记状态
     */
    @Excel(name = "登记状态", width = 15)
    @TableField(value = "registration_status")
    private String registrationStatus;

    /**
     * 登记机关
     */
    @Excel(name = "登记机关", width = 15)
    @TableField(value = "registration_authority")
    private String registrationAuthority;

    /**
     * 核准日期
     */
    @Excel(name = "核准日期", width = 15,format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "approval_date")
    private Date approvalDate;



    /**
     * 统一信用码
     */
    @Excel(name = "信用码", width = 15)
    @TableField(value = "credit_code")
    private String creditCode;



    /**
     * 企业地址
     */
    @Excel(name = "企业地址", width = 15)
    private String address;

    /**
     * 经营范围
     */
    @Excel(name = "经营范围", width = 15)
    @TableField(value = "business_scope")
    private String businessScope;

    /**
     * 电话
     */
    @Excel(name = "电话", width = 15)
    private String cphone;

    /**
     * 官网
     */
    @Excel(name = "官网", width = 15)
    private String website;

    /**
     * 公众号
     */
    @Excel(name = "公众号", width = 15)
    @TableField(value = "official_accounts")
    private String officialAccounts;

    /**
     * 微博
     */
    @Excel(name = "微博", width = 15)
    private String microblog;


    /**
     * 工商注册号
     */
    @Excel(name = "工商注册号", width = 15)
    @TableField(value = "registration_number")
    private String registrationNumber;

    /**
     * 组织机构码
     */
    @Excel(name = "组织机构码", width = 15)
    @TableField(value = "organization_code")
    private String organizationCode;

    /**
     * 公司简介
     */
    @Excel(name = "公司简介", width = 15)
    @TableField(value = "company_profile")
    private String companyProfile;

    /**
     * 封面图片
     */
    @Excel(name = "封面图片", width = 15)
    @TableField(value = "face_img")
    private String faceImg;

    /**
     * 发展历程
     */
    @Excel(name = "发展历程", width = 15)
    @TableField(value = "development")
    private String development;



    /**
     * 审核状态
     */
    @Excel(name = "审核状态", width = 15,dicCode = "check_status")
    @Dict(dicCode = "check_status")
    private Integer checkStatus;



    /**
     * 审核时间
     */
    @TableField(value = "check_time")
    @Excel(name = "审核时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;

    /**
     * 删除状态（0，正常，1已删除）
     */
    @Excel(name = "删除状态", width = 15, dicCode = "del_flag")
    @TableLogic
    private Integer delFlag;

    /**
     * 公司状态(1：正常  2：冻结 ）
     */
    @Excel(name = "公司状态", width = 15, dicCode = "company_status")
    @Dict(dicCode = "company_status")
    private Integer companyStatus;


    /**
     * 录入类型
    */
    @Excel(name = "录入类型", width = 15, dicCode = "input_type")
    @Dict(dicCode = "input_type")
    private Integer inputType;

    /**
     * 认领状态
     */
    @Excel(name = "认领状态", width = 15,dicCode = "binding_status")
    @Dict(dicCode = "binding_status")
    private Integer bindingStatus;

    /**
     * 绑定userid
     */
    @Excel(name = "绑定userid", width = 15)
    @TableField(value = "binding_userid")
    private String  bindingUserid;


    /**
     * 座机
     */
    @Excel(name = "座机", width = 15)
    @TableField(value = "telphone")
    private String  telphone;


    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Excel(name = "创建时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;



}
